package com.hutao.manage.pojo.cust;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hutao.manage.pojo.CitizensInfo;
import com.hutao.manage.pojo.FirstLevelMedical;
import com.hutao.manage.pojo.HospitalizationNote;

public class HospitalizationNoteBasic {

	/**
	 * 住院guid
	 */
	private String firstGuid;
	
	/**
	 * 住院号
	 */
	private String onlyId;
	
	/**
	 * 病案号
	 */
	private String mrId;
	
	/**
	 * 医院Id
	 */
	private Integer hospitalId;
	
	/**
	 * 医院名称
	 */
	private String hospitalName;
	
	/**
	 * 健康卡号
	 */
	private String healthCards;
	
	/**
	 * 付费方式
	 */
	private Integer payTypeId;
	
	/**
	 * 付费方式名称
	 * 
	 */
	private String payTypeName;
	
	/**
	 * 住院次数
	 */
	private Integer inHospitalNumber;
	
	/**
	 * 患者名字
	 */
	private String name;
	
	/**
	 * 证件类型
	 * 
	 */
	private Integer identityDocumentTypeId;
	
	/**
	 * 证件类型名称
	 * 
	 */
	private String identityDocumentTypeName;
	
	/**
	 * 患者证件号
	 */
	private String idNumber;
	
	
	/**
	 * 性别Id
	 */
	private Integer sexId;
	
	/**
	 * 性别名称
	 * 
	 */
	private String sexName;
	
	/**
	 * 出生日期
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birthday;
	
	/**
	 * 年龄
	 */
	private Integer age;
	
	 /**
     * 国籍
     */
    private Integer nationalityId;
    
    /**
     * 国籍名称
     * 
     */
    private String nationalityName;

    /**
     * 籍贯
     */
    private String nativePlace;
    
    /**
     * 民族状况
     */
    private Integer nationId;
    
    /**
     * 民族名称
     * 
     */
    private String nationName;

	/**
	 * 出生地
	 */
	private String birthAddress;
	
	
    
    /**
     * 职业
     */
    private Integer professionId;
    
    /**
     * 职业名称
     * 
     */
    private String professionName;

	/**
     * 婚姻状况
     */
    private Integer marriageId;
    
    /**
     * 婚姻状况名称
     * 
     */
    private String marriageName;
    
    /**
     * 现住地地址
     */
    private String familyAddress;
    
    
    /**
     * 现住地电话
     */
    private String phone;
    
    /**
     * 现住地移动电话
     */
    private String mobilePhone;
    
    
    /**
     * 现住地邮编
     */
    private String familyPostCode;
    
    /**
     * 工作地址
     */
    private String workPlace;
	
    /**
     * 工作单位
     */
    private String workUnit;
    
    /**
     * 工作单位电话
     */
    private String workUnitPhone;
    
  
    /**
     * 工作单位邮编
     */
    private String workPostCode;
    
    /**
     * 联系人姓名
     */
    private String linkManName;
    
    /**
     * 联系人地址
     */
    private String linkManAddress;
    
    /**
     * 亲属关系
     */
    private Integer relativeRelationId;
    
    /**
     * 亲属关系名称
     * 
     */
    private String relativeRelationName;
    
    /**
     * 联系人电话
     */
    private String linkManPhone;
    
    /**
     * 接诊日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
    private Date clinicalReceptionDate;
    
    /**
     * 门诊医师Id
     */
    private Integer outpatientOfDoctorId;
    
    /**
     * 门诊医师名称
     */
    private String outpatientOfDoctorName;
    
    /**
     * 经办人Id
     */
    private Integer responsiblePersonId;
    
    /**
     * 经办人名称
     */
    private String responsiblePersonName;
    /**
     * 转入机构Id
     */
    private Integer shiftToUnitId;
    
    /**
     * 转入机构名称
     * 
     */
    private String shiftToUnitName;
    
    /**
     *入院方式
     */
    private Integer inHospitalTypeId;
    
    /**
     * 入院方式名称
     * 
     */
    private String inHospitalTypeName;
    
    
    /**
     *入院状况
     */
    private Integer inHospitalStateId;
    
    /**
     * 入院状况名称
     * 
     */
    private String inHospitalStateName;
    
    /**
	 * 颅脑损伤昏迷时间
	 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date craniocerebralInjuryAndComaDateTime;
    
    
    /**
     *诊断确诊日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date diagnosisConfirmedDate;
    
    
    
    /**
	 * 入院科室
	 */
    private Integer inDeptId;
    
    /**
     * 入院科室名称
     */
    private String inDeptName;
    
    /**
	 * 入院日期
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date inHospitalDate;
    
    /**
     *诊疗科目
     */
    private Integer diagnosisSubjectId;
    
    /**
     *诊疗科目名称
     */
    private String diagnosisSubjectName;
    
    /**
	 * 出院科室
	 */
    private Integer outDeptId;
    
    /**
     * 出院科室名称
     */
    private String outDeptName;
    
    /**
	 * 出院日期
	 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date outHospitalDate;
    
    /**
     * 出院方式
     */
    private Integer outHospitalTypeId;
    
    /**
     * 出院方式名称
     */
    private String outHospitalTypeName;
    
    
    /**
     * 拟转出机构Id
     */
    private Integer rollOutUnitId;
    
    /**
     * 拟转出机构名称
     * 
     */
    private String rollOutUnitName;
    
    /**
     * 再住院计划Id
     */
    private Integer rehospitalizationAimId;
    
    /**
     * 再住院计划名称
     */
    private String rehospitalizationAimName;
    
    /**
     * 再住院计划间隔天数
     */
    private Integer rehospitalizationIntervalDay;
	
    /**
     * 死亡原因
     */
    private Integer dealthReasonId;
    
    /**
     * 死亡原因名称
     */
    private String dealthReasonName;
    
    /**
     * 是否尸检
     */
    private Boolean autopsy;
	
   
   
	public String getFirstGuid() {
		return firstGuid;
	}

	public void setFirstGuid(String firstGuid) {
		this.firstGuid = firstGuid;
	}

	public String getOnlyId() {
		return onlyId;
	}

	public void setOnlyId(String onlyId) {
		this.onlyId = onlyId;
	}

	public String getMrId() {
		return mrId;
	}

	public void setMrId(String mrId) {
		this.mrId = mrId;
	}

	public Integer getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(Integer hospitalId) {
		this.hospitalId = hospitalId;
	}
	
	public String getHospitalName() {
		return hospitalName;
	}

	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIdentityDocumentTypeId() {
		return identityDocumentTypeId;
	}

	public void setIdentityDocumentTypeId(Integer identityDocumentTypeId) {
		this.identityDocumentTypeId = identityDocumentTypeId;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public Integer getSexId() {
		return sexId;
	}

	public void setSexId(Integer sexId) {
		this.sexId = sexId;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getInHospitalDate() {
		return inHospitalDate;
	}

	public void setInHospitalDate(Date inHospitalDate) {
		this.inHospitalDate = inHospitalDate;
	}

	public Integer getInDeptId() {
		return inDeptId;
	}

	public void setInDeptId(Integer inDeptId) {
		this.inDeptId = inDeptId;
	}

	public Date getOutHospitalDate() {
		return outHospitalDate;
	}

	public void setOutHospitalDate(Date outHospitalDate) {
		this.outHospitalDate = outHospitalDate;
	}

	public Integer getOutDeptId() {
		return outDeptId;
	}

	public void setOutDeptId(Integer outDeptId) {
		this.outDeptId = outDeptId;
	}

	
	
	
	public Integer getNationalityId() {
		return nationalityId;
	}

	public void setNationalityId(Integer nationalityId) {
		this.nationalityId = nationalityId;
	}

	public Integer getMarriageId() {
		return marriageId;
	}

	public void setMarriageId(Integer marriageId) {
		this.marriageId = marriageId;
	}

	public Integer getNationId() {
		return nationId;
	}

	public void setNationId(Integer nationId) {
		this.nationId = nationId;
	}

	public Integer getProfessionId() {
		return professionId;
	}

	public void setProfessionId(Integer professionId) {
		this.professionId = professionId;
	}

	public Integer getRelativeRelationId() {
		return relativeRelationId;
	}

	public void setRelativeRelationId(Integer relativeRelationId) {
		this.relativeRelationId = relativeRelationId;
	}

	public String getHealthCards() {
		return healthCards;
	}

	public void setHealthCards(String healthCards) {
		this.healthCards = healthCards;
	}

	public Integer getPayTypeId() {
		return payTypeId;
	}

	public void setPayTypeId(Integer payTypeId) {
		this.payTypeId = payTypeId;
	}

	public Integer getInHospitalNumber() {
		return inHospitalNumber;
	}

	public void setInHospitalNumber(Integer inHospitalNumber) {
		this.inHospitalNumber = inHospitalNumber;
	}

	public String getBirthAddress() {
		return birthAddress;
	}

	public void setBirthAddress(String birthAddress) {
		this.birthAddress = birthAddress;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}

	public String getFamilyAddress() {
		return familyAddress;
	}

	public void setFamilyAddress(String familyAddress) {
		this.familyAddress = familyAddress;
	}

	public String getFamilyPostCode() {
		return familyPostCode;
	}

	public void setFamilyPostCode(String familyPostCode) {
		this.familyPostCode = familyPostCode;
	}

	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}

	public String getWorkUnitPhone() {
		return workUnitPhone;
	}

	public void setWorkUnitPhone(String workUnitPhone) {
		this.workUnitPhone = workUnitPhone;
	}

	public String getWorkPlace() {
		return workPlace;
	}

	public void setWorkPlace(String workPlace) {
		this.workPlace = workPlace;
	}

	public String getWorkPostCode() {
		return workPostCode;
	}

	public void setWorkPostCode(String workPostCode) {
		this.workPostCode = workPostCode;
	}

	public String getLinkManName() {
		return linkManName;
	}

	public void setLinkManName(String linkManName) {
		this.linkManName = linkManName;
	}

	public String getLinkManPhone() {
		return linkManPhone;
	}

	public void setLinkManPhone(String linkManPhone) {
		this.linkManPhone = linkManPhone;
	}

	public String getLinkManAddress() {
		return linkManAddress;
	}

	public void setLinkManAddress(String linkManAddress) {
		this.linkManAddress = linkManAddress;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	
	public Integer getInHospitalStateId() {
		return inHospitalStateId;
	}

	public void setInHospitalStateId(Integer inHospitalStateId) {
		this.inHospitalStateId = inHospitalStateId;
	}

	public Integer getInHospitalTypeId() {
		return inHospitalTypeId;
	}

	public void setInHospitalTypeId(Integer inHospitalTypeId) {
		this.inHospitalTypeId = inHospitalTypeId;
	}

	public Date getDiagnosisConfirmedDate() {
		return diagnosisConfirmedDate;
	}

	public void setDiagnosisConfirmedDate(Date diagnosisConfirmedDate) {
		this.diagnosisConfirmedDate = diagnosisConfirmedDate;
	}

	public Integer getDiagnosisSubjectId() {
		return diagnosisSubjectId;
	}

	public void setDiagnosisSubjectId(Integer diagnosisSubjectId) {
		this.diagnosisSubjectId = diagnosisSubjectId;
	}

	public Integer getOutHospitalTypeId() {
		return outHospitalTypeId;
	}

	public void setOutHospitalTypeId(Integer outHospitalTypeId) {
		this.outHospitalTypeId = outHospitalTypeId;
	}

	public Integer getDealthReasonId() {
		return dealthReasonId;
	}

	public void setDealthReasonId(Integer dealthReasonId) {
		this.dealthReasonId = dealthReasonId;
	}

	public Boolean getAutopsy() {
		return autopsy;
	}

	public void setAutopsy(Boolean autopsy) {
		this.autopsy = autopsy;
	}

	
	
	
	public String getPayTypeName() {
		return payTypeName;
	}

	public void setPayTypeName(String payTypeName) {
		this.payTypeName = payTypeName;
	}

	public String getIdentityDocumentTypeName() {
		return identityDocumentTypeName;
	}

	public void setIdentityDocumentTypeName(String identityDocumentTypeName) {
		this.identityDocumentTypeName = identityDocumentTypeName;
	}

	public String getSexName() {
		return sexName;
	}

	public void setSexName(String sexName) {
		this.sexName = sexName;
	}

	public String getNationalityName() {
		return nationalityName;
	}

	public void setNationalityName(String nationalityName) {
		this.nationalityName = nationalityName;
	}

	public String getNationName() {
		return nationName;
	}

	public void setNationName(String nationName) {
		this.nationName = nationName;
	}

	public String getProfessionName() {
		return professionName;
	}

	public void setProfessionName(String professionName) {
		this.professionName = professionName;
	}

	public String getMarriageName() {
		return marriageName;
	}

	public void setMarriageName(String marriageName) {
		this.marriageName = marriageName;
	}

	public String getRelativeRelationName() {
		return relativeRelationName;
	}

	public void setRelativeRelationName(String relativeRelationName) {
		this.relativeRelationName = relativeRelationName;
	}

	public String getInHospitalTypeName() {
		return inHospitalTypeName;
	}

	public void setInHospitalTypeName(String inHospitalTypeName) {
		this.inHospitalTypeName = inHospitalTypeName;
	}

	public String getInHospitalStateName() {
		return inHospitalStateName;
	}

	public void setInHospitalStateName(String inHospitalStateName) {
		this.inHospitalStateName = inHospitalStateName;
	}

	public String getInDeptName() {
		return inDeptName;
	}

	public void setInDeptName(String inDeptName) {
		this.inDeptName = inDeptName;
	}

	public String getOutDeptName() {
		return outDeptName;
	}

	public void setOutDeptName(String outDeptName) {
		this.outDeptName = outDeptName;
	}

	public String getOutHospitalTypeName() {
		return outHospitalTypeName;
	}

	public void setOutHospitalTypeName(String outHospitalTypeName) {
		this.outHospitalTypeName = outHospitalTypeName;
	}

	public String getDealthReasonName() {
		return dealthReasonName;
	}

	public void setDealthReasonName(String dealthReasonName) {
		this.dealthReasonName = dealthReasonName;
	}

	
	
	public String getDiagnosisSubjectName() {
		return diagnosisSubjectName;
	}

	public void setDiagnosisSubjectName(String diagnosisSubjectName) {
		this.diagnosisSubjectName = diagnosisSubjectName;
	}

	
	
	public Integer getShiftToUnitId() {
		return shiftToUnitId;
	}

	public void setShiftToUnitId(Integer shiftToUnitId) {
		this.shiftToUnitId = shiftToUnitId;
	}

	public String getShiftToUnitName() {
		return shiftToUnitName;
	}

	public void setShiftToUnitName(String shiftToUnitName) {
		this.shiftToUnitName = shiftToUnitName;
	}

	public Integer getRollOutUnitId() {
		return rollOutUnitId;
	}

	public void setRollOutUnitId(Integer rollOutUnitId) {
		this.rollOutUnitId = rollOutUnitId;
	}

	public String getRollOutUnitName() {
		return rollOutUnitName;
	}

	public void setRollOutUnitName(String rollOutUnitName) {
		this.rollOutUnitName = rollOutUnitName;
	}

	
	public Integer getRehospitalizationAimId() {
		return rehospitalizationAimId;
	}

	public void setRehospitalizationAimId(Integer rehospitalizationAimId) {
		this.rehospitalizationAimId = rehospitalizationAimId;
	}

	public String getRehospitalizationAimName() {
		return rehospitalizationAimName;
	}

	public void setRehospitalizationAimName(String rehospitalizationAimName) {
		this.rehospitalizationAimName = rehospitalizationAimName;
	}

	public Integer getRehospitalizationIntervalDay() {
		return rehospitalizationIntervalDay;
	}

	public void setRehospitalizationIntervalDay(Integer rehospitalizationIntervalDay) {
		this.rehospitalizationIntervalDay = rehospitalizationIntervalDay;
	}

	
	
	
	public Date getCraniocerebralInjuryAndComaDateTime() {
		return craniocerebralInjuryAndComaDateTime;
	}

	public void setCraniocerebralInjuryAndComaDateTime(
			Date craniocerebralInjuryAndComaDateTime) {
		this.craniocerebralInjuryAndComaDateTime = craniocerebralInjuryAndComaDateTime;
	}
	
	

	public Date getClinicalReceptionDate() {
		return clinicalReceptionDate;
	}

	public void setClinicalReceptionDate(Date clinicalReceptionDate) {
		this.clinicalReceptionDate = clinicalReceptionDate;
	}

	public Integer getOutpatientOfDoctorId() {
		return outpatientOfDoctorId;
	}

	public void setOutpatientOfDoctorId(Integer outpatientOfDoctorId) {
		this.outpatientOfDoctorId = outpatientOfDoctorId;
	}

	public String getOutpatientOfDoctorName() {
		return outpatientOfDoctorName;
	}

	public void setOutpatientOfDoctorName(String outpatientOfDoctorName) {
		this.outpatientOfDoctorName = outpatientOfDoctorName;
	}

	public Integer getResponsiblePersonId() {
		return responsiblePersonId;
	}

	public void setResponsiblePersonId(Integer responsiblePersonId) {
		this.responsiblePersonId = responsiblePersonId;
	}

	public String getResponsiblePersonName() {
		return responsiblePersonName;
	}

	public void setResponsiblePersonName(String responsiblePersonName) {
		this.responsiblePersonName = responsiblePersonName;
	}

	public void synchronizationFirstLevelMedical(FirstLevelMedical firstLevelMedical){
		firstLevelMedical.setHospitalId(this.hospitalId);
	}
	
	public void synchronizationCitizensInfo(CitizensInfo citizensInfo){
		citizensInfo.setName(this.name);
		citizensInfo.setSexId(this.sexId);
		citizensInfo.setBirthday(this.birthday);
		citizensInfo.setIdNumber(this.idNumber);
	}
	
	public void synchronizationHospitalizationNote(HospitalizationNote hospitalizationNote){
		hospitalizationNote.setMrId(this.mrId);
		hospitalizationNote.setOnlyId(this.onlyId);
		hospitalizationNote.setInDeptId(this.inDeptId);
		hospitalizationNote.setInHospitalDate(this.inHospitalDate);
		hospitalizationNote.setOutDeptId(this.outDeptId);
		hospitalizationNote.setOutHospitalDate(this.outHospitalDate);
		/**
		 * @author yimr
		 * 
		 * 设置入院/出院方式
		 */
		hospitalizationNote.setInHospitalTypeId(this.inHospitalTypeId);
		hospitalizationNote.setOutHospitalTypeId(this.outHospitalTypeId);
	}
	
	
	
}
